package com.wg.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wg.R;
import com.wg.entity.Users;
import com.wg.entity.dto.UserLoginDto;
import com.wg.entity.dto.UserRegisterDto;
import com.wg.entity.vo.MyScoreVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UserService extends IService<Users> {
    R register(UserRegisterDto user);

    R<Users> login(UserLoginDto user, HttpServletRequest request);

    R<MyScoreVo> getMyScore(Long id);

    R<List<MyScoreVo>> getAllScore();
}
